package com.qzsoft.zhjd.cement.modules.cementmaterielconsume.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qzsoft.zhjd.cement.modules.cementmaterielconsume.dto.CementMaterielConsumeDto;
import com.qzsoft.zhjd.cement.modules.cementmaterielconsume.mapper.CementMaterielConsumeMapper;
import com.qzsoft.zhjd.cement.modules.cementmaterielconsume.service.CementMaterielConsumeService;
import com.qzsoft.zhjd.common.components.BaseServiceComponent;

/**
 * @ClassName CementMaterielConsumeServiceImpl
 * @Description 材料消耗业务接口实现
 * @author linhuawei
 * @since 2022-04-29
 */
@Service
public class CementMaterielConsumeServiceImpl implements CementMaterielConsumeService {

    @Autowired
    private CementMaterielConsumeMapper cementMaterielConsumeMapper;

    @Autowired
    private BaseServiceComponent baseServiceComponent;

    @Override
    public IPage<CementMaterielConsumeDto> page(Map<String, Object> params) {
        IPage<CementMaterielConsumeDto> page = baseServiceComponent.getPage(params, CementMaterielConsumeDto.class);
        return cementMaterielConsumeMapper.queryDto(page, params);
    }

}
